import { v4 as uuidv4 } from "uuid";

// 获取用户临时id
export function getUserTempId() {
  // 先读取 ，没有在赋值
  let userTempId = localStorage.getItem("userTempId");
  if (!userTempId) {
    userTempId = uuidv4();

    localStorage.setItem("userTempId", userTempId);
  }
  return userTempId;
}
